@layout("/common/_container.html",{js:["/assets/basic/basicCode/basicCode_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="basicCodeForm" lay-filter="basicCodeForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 1px;">
			    	<legend>新增编码</legend>
			  	</fieldset>
                <div class="layui-form-item" pane="">
                    <label class="layui-form-label" style="font-weight: 600;">是否启用<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="正常" checked="checked">
                        <input type="radio" name="status" value="2" title="禁用">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">归属项目</label>
                    <div class="layui-input-block">
                        <select id="operateId" name="operateId" lay-filter="operateId" lay-verify="" required>
                            <option value="0">不限</option>
                            @for(item in basicOperatelist!){
                            <option value="${item.id}">${item.operateName}</option>
                            @}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">上级编码<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="pid" name="pid" type="hidden">
                        <input id="pName" name="pName" placeholder="请输入上级名称" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="codeName" name="codeName" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">编码<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="codeNumber" name="codeNumber" placeholder="请输入编码" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-block">
				        <textarea placeholder="请输入内容" class="layui-textarea" name="notes"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}